package com.example.benyq.mediaplayerdemo;

import android.content.Context;
import android.os.Environment;
import android.util.Log;


/**
 * @author benyq
 * @date 18-7-25 14:27
 * @E-mail： 1520063035@qq.com
 * @description
 */
public class FileDirUtils {

    public static void getAddress(Context context){
        Log.e("FileDirUtils", Environment.getExternalStorageDirectory().getAbsolutePath());
        Log.e("FileDirUtils", Environment.getDataDirectory().getAbsolutePath());
        Log.e("FileDirUtils", Environment.getDownloadCacheDirectory().getAbsolutePath());
        Log.e("FileDirUtils", Environment.getRootDirectory().getAbsolutePath());
        Log.e("FileDirUtils", Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_ALARMS).getAbsolutePath());
        Log.e("FileDirUtils", context.getExternalFilesDir(Environment.DIRECTORY_ALARMS).getAbsolutePath());
        Log.e("FileDirUtils", context.getFilesDir().getAbsolutePath());
        Log.e("FileDirUtils", context.getCacheDir().getAbsolutePath());
        Log.e("FileDirUtils", context.getExternalCacheDir().getAbsolutePath());

    }
}
